package com.kob.backend.controller.pk;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author cyz
 * @version 1.0
 * @date 2022/12/27 20:04
 */
@RestController //@RestController = @Controller + @ResponseBody 只返回字符串或者列表或者字典不会去找jsp或者html页面
//@CrossOrigin(origins = "*") //处理跨域问题的一个方法
@RequestMapping("/pk/")
public class BotInfoController {


    @RequestMapping("getbotinfo/")
    public Map<String, String> getBotinfo(){
        Map<String, String> bot1 = new HashMap<>();
        bot1.put("name", "tiger");
        bot1.put("rating", "1500");
        return bot1;
    }

}
